@charset "utf-8";
*{
	margin: 0;
	padding: 0;
	text-decoration: none;
	list-style: none;
}
ul{
	font-size: 0;
	border-bottom: 1px dashed skyblue;
	li{
		width: 20%;
		height: 60px;
		line-height: 60px;
		font-size: 24px;
		font-family: cursive;
		text-align: center;
		box-sizing: border-box;
		display: inline-block;
		cursor: pointer;
		vertical-align: middle;
		position: relative;
		&:not(:last-child){
			border-right: 1px dashed skyblue;
		}
		&:hover{
			color: white;
			background-color: aqua;
			font-size: 28px;
		}
		&:last-child::after{
			content: "";
			display: block;
			position: absolute;
			bottom: -2px;
			left: 0;
			width: 100%;
			height: 4px;
			background-color: #000;
			transition: all .5s cubic-bezier(1,.2,.1,1.8);
		}
		&:nth-child(1).active~:last-child::after{
			transform: translateX(-400%);
		}
		&:nth-child(2).active~:last-child::after{
			transform: translateX(-300%);
		}
		&:nth-child(3).active~:last-child::after{
			transform: translateX(-200%);
		}
		&:nth-child(4).active~:last-child::after{
			transform: translateX(-100%);
		}
		&:last-child:active::after{
			transform: translateX(0%);
		}
	}
}
.content_box{
	position: relative;
	height: 400px;
	div{
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;
		left: 0;
		text-align: center;
		line-height: 400px;
		font-size: 48px;
		font-family: cursive;
		display: none;
	}
	.div1{
		background-color: #f00;
		display: block;
	}
	.div2{
		background-color: #0f0;
	}
	.div3{
		background-color: #00f;
	}
	.div4{
		background-color: #ff0;
	}
	.div5{
		background-color: #0ff;
	}
}